package mark.tom.pistols.encryptor.ciphers;

import mark.tom.pistols.algorithm.encryption.DESEncryption;
import mark.tom.pistols.encryptor.DataEncrypt;

/**
 * @Description: DES算法进行数据加密的方法
 * @Author: ttmk110@163.com
 * @Package: mark.tom.pistols.encryptor
 * @Date: 2020/7/11
 * @Copyright: 版权归 Mark 所有
 * <ModifyLog>
 * @ModifyContent:
 * @Author:
 * @Date: </ModifyLog>
 */
public class DESDataEncrypt extends DataEncrypt {

    private String ivParameterSpec;

    @Override
    public String getEncryptData(String input) throws Exception {
        return DESEncryption.encrypt(pubKey, ivParameterSpec, input);
    }

    @Override
    public void setExtParam(String param) {
        this.ivParameterSpec = param;
    }
}
